<?php
class SessionEntity {
    public $id;
    public $email;
    public $password;
    public $fullname;
    public $birthday;
    public $address;
    public $phone;
    public $userType;
    public $creation_date;
    public $last_login;
    public $balance;
    public $picture;
    public $gender;
    public $status;


    /**
     * SessionEntity contructor
     *
     * @param object userEntity
     */
    public function __construct($userEntity) {
        if(!is_null($userEntity) && $userEntity instanceof UserEntity) {
            $this->id = $userEntity->id;
            $this->email = $userEntity->email;
            $this->password = $userEntity->password;
            $this->fullname = $userEntity->fullname;
            $this->birthday = $userEntity->birthday;
            $this->address = $userEntity->address;
            $this->phone = $userEntity->phone;
            $this->userType = $userEntity->userType;
            $this->creation_date = $userEntity->creation_date;
            $this->last_login = $userEntity->last_login;
            $this->balance = $userEntity->balance;
            $this->picture = $userEntity->picture;
            $this->gender = $userEntity->gender;
            $this->status = $userEntity->status;
        }
    }
}